package com.qsbc.pygram.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qsbc.pygram.entity.Checkpoint;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import net.bytebuddy.implementation.bytecode.constant.IntegerConstant;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author baomidou
 * @since 2022-10-29
 */
@Mapper
public interface CheckpointMapper extends BaseMapper<Checkpoint> {



    Page<Checkpoint> findPage(Page<Checkpoint> page, @Param("id") Integer id, @Param("checkpointTitle") String checkpointTitle);

    @Select("select id from Checkpoint  where id =#{id} ")
    Integer findByid(Checkpoint checkpoint);


}
